That is what came with the package! If you can check inside the SubmitBasket[XSLT].xsl file in uCommerce version 2.0.2.0 ? You will find the Line of code(extension).
You're correct that it's in there, but it's commented out be default. The commented out code made it's way into the package by accident. I'll go ahead and remove it for the next release.
In the meantime you can safely remove it and your site will work just fine.
Error Passing SubmitBasket[XSLT]
Good Day,
Im getting this error on my subit Basket Page. There seems to be a problem with the "CommerceLibrary:SetBillingAddress(''Billing)" Method.
Please check below is the erro Im getting:
Error occured
System.Xml.Xsl.XslTransformException: Extension object 'urn:CommerceLibrary' does not contain a matching 'SetBillingAddress' method that has 1 parameter(s).
at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind()
at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags)
at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Hi Luyolo,
There's no SetBillingAddress extension. You want CommerceLibrary:EditBillingInformation.
Hi Soren,
That is what came with the package! If you can check inside the SubmitBasket[XSLT].xsl file in uCommerce version 2.0.2.0 ? You will find the Line of code(extension).
This is how the file is below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
xmlns:CommerceLibrary="urn:CommerceLibrary"
exclude-result-prefixes="msxml umbraco.library CommerceLibrary">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:variable name="isPostback" select="umbraco.library:RequestForm('submitBasket') "></xsl:variable>
<xsl:if test="string-length($isPostback) > 0">
<xsl:value-of select="CommerceLibrary:ExecuteBasketPipeline()"></xsl:value-of>
NB: ----> <xsl:variable name="addressResult" select="CommerceLibrary:SetBillingAddress('Billing')"></xsl:variable>
<xsl:variable name="result" select="CommerceLibrary:Checkout()"></xsl:variable>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
You're correct that it's in there, but it's commented out be default. The commented out code made it's way into the package by accident. I'll go ahead and remove it for the next release.
In the meantime you can safely remove it and your site will work just fine.
Sorry for the inconvenience.
Hi Soren,
I have safely removed it and it works just fine!!
Thank you for your help
is working on a reply...